//
//  RacksCollectionFooterView.m
//  danpin
//
//  Created by chuangjia on 5/12/2015.
//  Copyright © 2015 chuangjia. All rights reserved.
//

#import "RacksCollectionFooterView.h"
#import "viewconfig.h"
@interface RacksCollectionFooterView()
{
    
}
@property(nonatomic,strong)UILabel *statusKey;
@end

@implementation RacksCollectionFooterView
- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        
        _statusKey =[[UILabel alloc] initWithFrame:CGRectMake(0,(self.frame.size.height-20)/2, DEVICE_WIDTH,20)];
        _statusKey.backgroundColor = [UIColor clearColor];
        _statusKey.textColor = UIColorFromRGB(0xcccccc);
        _statusKey.textAlignment = NSTextAlignmentCenter;
        _statusKey.font = FONT(14);
        [self addSubview:_statusKey];
    }
    return self;
}
-(void)showinfo:(NSString*)str
{
    if (str && str.length>0) {
        _statusKey.text = str;
    }else{
        _statusKey.text =@"";
    }
}
@end